opts = Options()
opts.Add(BoolOption('RELEASE', 'Set to build for release', 0))
env = Environment(options = opts, CPPDEFINES={'RELEASE' : '${RELEASE}'})
Help(opts.GenerateHelpText(env))

if env['PLATFORM'] == 'win32':
	boost_include_dir = 'D:/Program Files/boost/boost_1_34_1'
	boost_lib_dir = 'D:/Program Files/boost/boost_1_34_1/stage/lib'
	boost_lib_suffix = '-mgw34-1_34_1'

	env.Append(CPPPATH = boost_include_dir)
	env.Append(LIBPATH = boost_lib_dir)
else:
	boost_include_dir = '/usr/local/include/boost-1_35'
	boost_lib_dir = ''
	boost_lib_suffix = '-gcc42-mt'

	env.Append(CPPPATH = boost_include_dir)
	env.Append(LIBPATH = boost_lib_dir)

cc_and_link = ['-Wall', '-O2']
env.Append(CXXFLAGS = cc_and_link, LINKFLAGS = cc_and_link)

if env['RELEASE'] == False:
	env.Append(CXXFLAGS = ' -g')

env.Program(['ac_test.cpp'])
